﻿using System;
using System.Collections.Generic;
using System.Web.UI;
using BLL;
using Model;

namespace GeniusAdminWebApplication
{
    public partial class systemlog : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            IList<SystemLog> sl = getSystemLogs();
            string str = "";
            foreach (SystemLog s in sl)
            {
                str = "时间:" + s.operateTime + ";管理员:" + s.user.name + ";事件:" + s.events;
                ph_log.Controls.Add(new LiteralControl("<div style='margin:10px;font-size:20px;'>" + str + "</div>"));
            }

        }

        private IList<SystemLog> getSystemLogs()
        {
            return new SystemLogService().getSystemLog();
        }
    }
}